package com.doctcloud.hisinfo.outpbill.controller;

import com.doctcloud.hisinfo.histable.domain.outpbill.OutpOrderDescDo;
import com.doctcloud.hisinfo.outpbill.service.impl.OutpOrderDescService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping(value = "/outpbill/")
public class OutpOrderDescController {
    @Autowired
    private OutpOrderDescService orderDescService;

    @GetMapping("/outporderdesc/listByRcpt")
    public List<OutpOrderDescDo> listByRcpt(@RequestParam("rcptNo") String rcptNo){
        return orderDescService.listByRcpt(rcptNo);
    }
}
